@echo off
if /i "%VS100COMNTOOLS%"=="C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\" call publishx86.bat
if /i "%VS100COMNTOOLS%"=="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\" call publishx64.bat 
pause